package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.StrategyDetail;
import cn.wolfcode.luowowo.article.query.StrategyDetailQuery;
import cn.wolfcode.luowowo.article.vo.DetailVo;

import java.util.List;

public interface StrategyDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(StrategyDetail record);

    StrategyDetail selectByPrimaryKey(Long id);

    List<StrategyDetail> selectAll();

    int updateByPrimaryKey(StrategyDetail record);

    List<StrategyDetail> selectForList(StrategyDetailQuery qo);

    void changeState(Long id, Integer state);

    List<StrategyDetail> getDetailsByViewTop3(Long id);

    List<StrategyDetail> queryByCatalogId(Long catalogId);

    void updateReplyNum(Long detailId, Integer i);

    int getReplyNumById(Long detailId);

    void setVO(DetailVo vo);
}